<?php
///**
// * Implements hook_rules_event_info().
// */
//function youji_income_order_rules_event_info() {
//  return [
//    'common_rules_event_user_is_new' => [
//      'label' => t('首次登陆'),
//      'group' => t('Common'),
//      'variables' => [
//        'user' => [
//          'type' => 'user',
//          'label' => t('用户'),
//        ],
//      ],
//    ],
//  ];
//}
//
///**
// * Implements hook_rules_condition_info().
// */
//function youji_income_order_rules_condition_info() {
//  return [
//    'rules_condition_text_compare' => [
//      'label' => t('Textual comparison'),
//      'parameter' => [
//        'text1' => ['label' => t('Text 1'), 'type' => 'text'],
//        'text2' => ['label' => t('Text 2'), 'type' => 'text'],
//      ],
//      'group' => t('Rules'),
//    ],
//  ];
//}

/**
 * Implements hook_rules_action_info().
 */
function youji_income_order_rules_action_info() {
  return [
    'youji_income_order_rules_action_order_settle' => [
      'label' => t('订单结算'),
      'parameter' => [
        'order' => [
          'type' => 'shusy_store_order',
          'label' => t('Order'),
        ],
      ],
      'group' => t('Youji income order'),
    ],
    'youji_income_order_rules_action_order_period' => [
      'label' => t('订单账期解锁'),
      'parameter' => [
        'order' => [
          'type' => 'shusy_store_order',
          'label' => t('Order'),
        ],
      ],
      'group' => t('Youji income order'),
    ],
  ];
}
